package com.yan.mapper;

import com.yan.pojo.User;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

public class UserMapper02 extends SqlSessionDaoSupport implements UserMapper{
    @Override
    public List<User> selectUser() {
//             SqlSession sqlSession=getSqlSession();
//        UserMapper mapper = sqlSession.getMapper(UserMapper.class);


        return getSqlSession().getMapper(UserMapper.class).selectUser();

    }
}
